package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_topic table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_topic"
 */

public abstract class BaseTJesTopic  implements Serializable {

	public static String REF = "TJesTopic";
	public static String PROP_STATUS = "Status";
	public static String PROP_DUETIME = "Duetime";
	public static String PROP_DEPTID = "Deptid";
	public static String PROP_KEYWORDS = "Keywords";
	public static String PROP_CSSID = "Cssid";
	public static String PROP_USERID = "Userid";
	public static String PROP_IMG = "Img";
	public static String PROP_MODIFYTIME = "Modifytime";
	public static String PROP_FEEDBACKS = "Feedbacks";
	public static String PROP_ISTOP = "Istop";
	public static String PROP_CONTENT = "Content";
	public static String PROP_MODIFYUSERID = "Modifyuserid";
	public static String PROP_CLICKS = "Clicks";
	public static String PROP_MODIFYUSERNAME = "Modifyusername";
	public static String PROP_INTRO = "Intro";
	public static String PROP_LASTBACKTIME = "Lastbacktime";
	public static String PROP_DEPTNAME = "Deptname";
	public static String PROP_TCOLOR = "Tcolor";
	public static String PROP_VURL = "Vurl";
	public static String PROP_SUBTITLE = "Subtitle";
	public static String PROP_ORDERIDX = "Orderidx";
	public static String PROP_TITLE = "Title";
	public static String PROP_ID = "Id";
	public static String PROP_USERNAME = "Username";
	public static String PROP_POSTTIME = "Posttime";


	// constructors
	public BaseTJesTopic () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesTopic (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String title;
	private java.lang.String subtitle;
	private java.lang.String tcolor;
	private java.lang.String keywords;
	private String content;
	private java.util.Date posttime;
	private java.util.Date duetime;
	private java.lang.String userid;
	private java.lang.String username;
	private java.lang.String deptid;
	private java.lang.String deptname;
	private java.lang.Integer orderidx;
	private java.lang.String istop;
	private java.lang.Integer clicks;
	private java.lang.Integer feedbacks;
	private java.lang.String modifyuserid;
	private java.lang.String modifyusername;
	private java.util.Date modifytime;
	private java.lang.String status;
	private java.util.Date lastbacktime;
	private java.lang.String intro;
	private java.lang.String img;
	private java.lang.String vurl;
	private java.lang.String cssid;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: TITLE
	 */
	public java.lang.String getTitle () {
		return title;
	}

	/**
	 * Set the value related to the column: TITLE
	 * @param title the TITLE value
	 */
	public void setTitle (java.lang.String title) {
		this.title = title;
	}



	/**
	 * Return the value associated with the column: SUBTITLE
	 */
	public java.lang.String getSubtitle () {
		return subtitle;
	}

	/**
	 * Set the value related to the column: SUBTITLE
	 * @param subtitle the SUBTITLE value
	 */
	public void setSubtitle (java.lang.String subtitle) {
		this.subtitle = subtitle;
	}



	/**
	 * Return the value associated with the column: TCOLOR
	 */
	public java.lang.String getTcolor () {
		return tcolor;
	}

	/**
	 * Set the value related to the column: TCOLOR
	 * @param tcolor the TCOLOR value
	 */
	public void setTcolor (java.lang.String tcolor) {
		this.tcolor = tcolor;
	}



	/**
	 * Return the value associated with the column: KEYWORDS
	 */
	public java.lang.String getKeywords () {
		return keywords;
	}

	/**
	 * Set the value related to the column: KEYWORDS
	 * @param keywords the KEYWORDS value
	 */
	public void setKeywords (java.lang.String keywords) {
		this.keywords = keywords;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: POSTTIME
	 */
	public java.util.Date getPosttime () {
		return posttime;
	}

	/**
	 * Set the value related to the column: POSTTIME
	 * @param posttime the POSTTIME value
	 */
	public void setPosttime (java.util.Date posttime) {
		this.posttime = posttime;
	}



	/**
	 * Return the value associated with the column: DUETIME
	 */
	public java.util.Date getDuetime () {
		return duetime;
	}

	/**
	 * Set the value related to the column: DUETIME
	 * @param duetime the DUETIME value
	 */
	public void setDuetime (java.util.Date duetime) {
		this.duetime = duetime;
	}



	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: USERNAME
	 */
	public java.lang.String getUsername () {
		return username;
	}

	/**
	 * Set the value related to the column: USERNAME
	 * @param username the USERNAME value
	 */
	public void setUsername (java.lang.String username) {
		this.username = username;
	}



	/**
	 * Return the value associated with the column: DEPTID
	 */
	public java.lang.String getDeptid () {
		return deptid;
	}

	/**
	 * Set the value related to the column: DEPTID
	 * @param deptid the DEPTID value
	 */
	public void setDeptid (java.lang.String deptid) {
		this.deptid = deptid;
	}



	/**
	 * Return the value associated with the column: DEPTNAME
	 */
	public java.lang.String getDeptname () {
		return deptname;
	}

	/**
	 * Set the value related to the column: DEPTNAME
	 * @param deptname the DEPTNAME value
	 */
	public void setDeptname (java.lang.String deptname) {
		this.deptname = deptname;
	}



	/**
	 * Return the value associated with the column: ORDERIDX
	 */
	public java.lang.Integer getOrderidx () {
		return orderidx;
	}

	/**
	 * Set the value related to the column: ORDERIDX
	 * @param orderidx the ORDERIDX value
	 */
	public void setOrderidx (java.lang.Integer orderidx) {
		this.orderidx = orderidx;
	}



	/**
	 * Return the value associated with the column: ISTOP
	 */
	public java.lang.String getIstop () {
		return istop;
	}

	/**
	 * Set the value related to the column: ISTOP
	 * @param istop the ISTOP value
	 */
	public void setIstop (java.lang.String istop) {
		this.istop = istop;
	}



	/**
	 * Return the value associated with the column: CLICKS
	 */
	public java.lang.Integer getClicks () {
		return clicks;
	}

	/**
	 * Set the value related to the column: CLICKS
	 * @param clicks the CLICKS value
	 */
	public void setClicks (java.lang.Integer clicks) {
		this.clicks = clicks;
	}



	/**
	 * Return the value associated with the column: FEEDBACKS
	 */
	public java.lang.Integer getFeedbacks () {
		return feedbacks;
	}

	/**
	 * Set the value related to the column: FEEDBACKS
	 * @param feedbacks the FEEDBACKS value
	 */
	public void setFeedbacks (java.lang.Integer feedbacks) {
		this.feedbacks = feedbacks;
	}



	/**
	 * Return the value associated with the column: MODIFYUSERID
	 */
	public java.lang.String getModifyuserid () {
		return modifyuserid;
	}

	/**
	 * Set the value related to the column: MODIFYUSERID
	 * @param modifyuserid the MODIFYUSERID value
	 */
	public void setModifyuserid (java.lang.String modifyuserid) {
		this.modifyuserid = modifyuserid;
	}



	/**
	 * Return the value associated with the column: MODIFYUSERNAME
	 */
	public java.lang.String getModifyusername () {
		return modifyusername;
	}

	/**
	 * Set the value related to the column: MODIFYUSERNAME
	 * @param modifyusername the MODIFYUSERNAME value
	 */
	public void setModifyusername (java.lang.String modifyusername) {
		this.modifyusername = modifyusername;
	}



	/**
	 * Return the value associated with the column: MODIFYTIME
	 */
	public java.util.Date getModifytime () {
		return modifytime;
	}

	/**
	 * Set the value related to the column: MODIFYTIME
	 * @param modifytime the MODIFYTIME value
	 */
	public void setModifytime (java.util.Date modifytime) {
		this.modifytime = modifytime;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: LASTBACKTIME
	 */
	public java.util.Date getLastbacktime () {
		return lastbacktime;
	}

	/**
	 * Set the value related to the column: LASTBACKTIME
	 * @param lastbacktime the LASTBACKTIME value
	 */
	public void setLastbacktime (java.util.Date lastbacktime) {
		this.lastbacktime = lastbacktime;
	}



	/**
	 * Return the value associated with the column: INTRO
	 */
	public java.lang.String getIntro () {
		return intro;
	}

	/**
	 * Set the value related to the column: INTRO
	 * @param intro the INTRO value
	 */
	public void setIntro (java.lang.String intro) {
		this.intro = intro;
	}



	/**
	 * Return the value associated with the column: Img
	 */
	public java.lang.String getImg () {
		return img;
	}

	/**
	 * Set the value related to the column: Img
	 * @param img the Img value
	 */
	public void setImg (java.lang.String img) {
		this.img = img;
	}



	/**
	 * Return the value associated with the column: VURL
	 */
	public java.lang.String getVurl () {
		return vurl;
	}

	/**
	 * Set the value related to the column: VURL
	 * @param vurl the VURL value
	 */
	public void setVurl (java.lang.String vurl) {
		this.vurl = vurl;
	}



	/**
	 * Return the value associated with the column: CSSID
	 */
	public java.lang.String getCssid () {
		return cssid;
	}

	/**
	 * Set the value related to the column: CSSID
	 * @param cssid the CSSID value
	 */
	public void setCssid (java.lang.String cssid) {
		this.cssid = cssid;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesTopic)) return false;
		else {
			com.lovejes.app.domain.TJesTopic tJesTopic = (com.lovejes.app.domain.TJesTopic) obj;
			if (null == this.getId() || null == tJesTopic.getId()) return false;
			else return (this.getId().equals(tJesTopic.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}